package com.erik.lin.controller;

import com.erik.lin.annotion.MenuVerify;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Erik on 2017/8/21.
 */
@RequestMapping("/permission")
@RestController
@MenuVerify
public class PermissionTestController {

    @RequestMapping(value = "/is", method = RequestMethod.GET)
    public @ResponseBody Object isPermission() {
        return "ok";
    }

    @RequestMapping(value = "/not", method = RequestMethod.GET)
    public @ResponseBody Object notPermission() {
        return "ok";
    }
}
